//
// Copyright (c) 2006 by Conor O'Mahony.
// For enquiries, please email GubuSoft@GubuSoft.com.
// Please keep all copyright notices below.
// Original author of TreeView script is Marcelino Martins.
//
// This document includes the TreeView script.
// The TreeView script can be found at http://www.TreeView.net.
// The script is Copyright (c) 2006 by Conor O'Mahony.
//
// You can find general instructions for this file at www.treeview.net.
//

USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 0
WRAPTEXT = 1
PRESERVESTATE = 1

//
// The following code constructs the tree.  This code produces a tree that looks like:
// 
// Tree Options
//  - Expand for example with pics and flags
//    - United States
//      - Boston
//      - Tiny pic of New York City
//      - Washington
//    - Europe
//      - London
//      - Lisbon
//  - Types of node
//    - Expandable with link
//      - London
//    - Expandable without link
//      - NYC
//    - Opens in new window
//


var bluy=new Array("&#4774;&#4650;&#4725; &#4824;&#4941;&#4901;&#4648;&#4725;",	
"&#4774;&#4650;&#4725; &#4824;&#4920;&#4768;&#4725; ",	
"&#4774;&#4650;&#4725; &#4824;&#4620;&#4811;&#4813;&#4843;&#4757; ",	
"&#4774;&#4650;&#4725; &#4824;&#4613;&#4621;&#4685;",	
"&#4774;&#4650;&#4725; &#4824;&#4851;&#4877;&#4637;",	
"&#4632;&#4925;&#4627;&#4941; &#4770;&#4843;&#4657; &#4808;&#4621;&#4848; &#4752;&#4812;",	
"&#4632;&#4925;&#4627;&#4941; &#4632;&#4643;&#4941;&#4757;&#4725;",	
"&#4632;&#4925;&#4627;&#4941; &#4649;&#4725;",	
"1&#4845; &#4632;&#4925;&#4627;&#4941; &#4659;&#4633;&#4772;&#4621;",	
"2&#4845; &#4632;&#4925;&#4627;&#4941; &#4659;&#4633;&#4772;&#4621;",	
"1&#4845; &#4632;&#4925;&#4627;&#4941; &#4752;&#4872;&#4661;&#4723;&#4725;",	
"2&#4845; &#4632;&#4925;&#4627;&#4941; &#4752;&#4872;&#4661;&#4723;&#4725;",	
"1&#4845; &#4632;&#4925;&#4627;&#4941; &#4828;&#4755; &#4632;&#4811;&#4821;&#4621; ",	
"2&#4845; &#4632;&#4925;&#4627;&#4941; &#4828;&#4755; &#4632;&#4811;&#4821;&#4621;",	
"&#4632;&#4925;&#4627;&#4941; &#4821;&#4829;&#4651;",	
"&#4632;&#4925;&#4627;&#4941; &#4752;&#4613;&#4637;&#4843;",	
"&#4632;&#4925;&#4627;&#4941; &#4771;&#4661;&#4724;&#4653;",	
"&#4632;&#4925;&#4627;&#4941; &#4770;&#4846;&#4709;",	
"&#4632;&#4829;&#4633;&#4653; &#4851;&#4810;&#4725;",	
"&#4632;&#4925;&#4627;&#4941; &#4637;&#4659;&#4620;",	
"&#4632;&#4925;&#4627;&#4941; &#4632;&#4781;&#4709;&#4709;",	
"&#4632;&#4739;&#4621;&#4840; &#4632;&#4739;&#4621;&#4840; &#4824;&#4656;&#4622;&#4638;&#4757;",	
"&#4725;&#4757;&#4706;&#4725; &#4770;&#4659;&#4845;&#4843;&#4661;",	
"&#4725;&#4757;&#4706;&#4725; &#4772;&#4653;&#4637;&#4843;&#4661;",	
"&#4656;&#4678;&#4675;&#4813; &#4772;&#4653;&#4637;&#4843;&#4661;",	
"&#4725;&#4757;&#4706;&#4725; &#4629;&#4829;&#4677;&#4772;&#4621;",	
"&#4725;&#4757;&#4706;&#4725; &#4851;&#4757;&#4772;&#4621;",	
"&#4725;&#4757;&#4706;&#4725; &#4614;&#4660;&#4821;",	
"&#4725;&#4757;&#4706;&#4725; &#4770;&#4846;&#4772;&#4621;",	
"&#4725;&#4757;&#4706;&#4725; &#4768;&#4638;&#4925;",	
"&#4725;&#4757;&#4706;&#4725; &#4768;&#4709;&#4853;&#4841; ",	
"&#4725;&#4757;&#4706;&#4725; &#4846;&#4755;&#4661;",	
"&#4725;&#4757;&#4706;&#4725; &#4634;&#4781;&#4843;&#4661;",	
"&#4725;&#4757;&#4706;&#4725; &#4755;&#4614;&#4637;",	
"&#4725;&#4757;&#4706;&#4725; &#4821;&#4757;&#4707;&#4678;&#4637;",	
"&#4725;&#4757;&#4706;&#4725; &#4662;&#4942;&#4757;&#4843;&#4661; ",	
"&#4725;&#4757;&#4706;&#4725; &#4624;&#4876;",	
"&#4725;&#4757;&#4706;&#4725; &#4824;&#4779;&#4653;&#4843;&#4661;",	
"&#4725;&#4757;&#4706;&#4720; &#4634;&#4621;&#4781;&#4843;",	
"&#4808;&#4757;&#4876;&#4621; &#4635;&#4724;&#4814;&#4661;",	
"&#4808;&#4757;&#4876;&#4621; &#4635;&#4653;&#4678;&#4661;",	
"&#4808;&#4757;&#4876;&#4621; &#4617;&#4675;&#4661; ",	
"&#4808;&#4757;&#4876;&#4621; &#4846;&#4624;&#4757;&#4661; ",	
"&#4877;&#4709;&#4648; &#4624;&#4811;&#4653;&#4843;&#4725;",	
"&#4632;.  &#4654;&#4636; ",	
"1&#4845; &#4632;.  &#4678;&#4654;&#4757;&#4726;&#4661; ",	
"2&#4845; &#4632;.  &#4678;&#4654;&#4757;&#4726;&#4661; ",	
"&#4632;.  &#4872;&#4619;&#4725;&#4843; ",	
"&#4632;.  &#4772;&#4940;&#4662;&#4757; ",	
"&#4632;.  &#4938;&#4621;&#4917;&#4661;&#4841;&#4661; ",	
"&#4632;.  &#4678;&#4619;&#4661;&#4845;&#4661; ",	
"1&#4845; &#4632;.  &#4720;&#4656;&#4622;&#4757;&#4676; ",	
"2&#4845; &#4632;.  &#4720;&#4656;&#4622;&#4757;&#4676; ",	
"1&#4845; &#4632;.  &#4898;&#4638;&#4724;&#4814;&#4661; ",	
"2&#4845; &#4632;.  &#4898;&#4638;&#4724;&#4814;&#4661; ",	
"&#4632;.  &#4722;&#4726; ",	
"&#4632;.  &#4938;&#4621;&#4638;&#4755; ",	
"&#4632;.  &#4821;&#4709;&#4651;&#4813;&#4843;&#4757; ",	
"&#4632;. &#4843;&#4821;&#4678;&#4709; ",	
"1&#4845; &#4632;. &#4916;&#4901;&#4654;&#4661;",	
"2&#4845; &#4632;. &#4916;&#4901;&#4654;&#4661;",	
"1&#4845; &#4632;. &#4846;&#4624;&#4757;&#4661;",	
"2&#4845; &#4632;. &#4846;&#4624;&#4757;&#4661;",	
"3&#4845; &#4632;. &#4846;&#4624;&#4757;&#4661;",	
"&#4632;. &#4845;&#4609;&#4851;",	
"&#4651;&#4773;&#4845; &#4846;&#4624;&#4757;&#4661;");

var bluySize=new Array(50,	
40,	
27,	
36,	
34,	
24,	
21,	
4,	
31,	
24,	
22,	
25,	
29,	
36,	
10,	
13,	
10,	
42,	
150,	
31,	
12,	
8,	
52,	
52,	
0,	
48,	
12,	
14,	
3,	
9,	
1,	
4,	
7,	
3,	
3,	
3,	
2,	
14,	
4,	
28,	
16,	
24,	
21,	
28,	
16,	
16,	
13,	
6,	
6,	
4,	
4,	
5,	
3,	
6,	
4,	
3,	
1,	
13,	
5,	
5,	
3,	
5,	
1,	
1,	
1,	
22);


foldersTree = gFld("<i>&#4632;&#4925;&#4627;&#4941; &#4677;&#4849;&#4661;</i>",null )
 

  aux1 = insFld(foldersTree, gFld("&#4709;&#4617;&#4845; &#4778;&#4851;&#4757;",null ))

var j=0;
var i=0;
for(j=1;j<=39;j++){
    aux2 = insFld(aux1, gFld(bluy[j-1],null))
for (i=1;i<=bluySize[j-1];i++){
insDoc(aux2, gLnk("R", "&#4637;&#4821;&#4651;&#4941; "+i, "main.php?book="+j+"&chapter="+i+"&ln=ti"))
}
}
   

  aux1 = insFld(foldersTree, gFld("&#4627;&#4853;&#4669; &#4778;&#4851;&#4757;", "javascript:parent.op()"))

   
var j=0;
var i=0;
for(j=40;j<=66;j++){
    aux2 = insFld(aux1, gFld(bluy[j-1], null))
for (i=1;i<=bluySize[j-1];i++){
insDoc(aux2, gLnk("R", "&#4637;&#4821;&#4651;&#4941; "+i, "main.php?book="+j+"&chapter="+i+"&ln=ti"))
}
}
